/*
 * Deque - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
public final class Deque {
	private int anInt127 = -48545;
	private int anInt128;
	public Class50 aClass50_129 = new Class50();
	private Class50 aClass50_130;

	public Deque(boolean bool) {
		if (!bool) {
			for (int i = 1; i > 0; i++) {
				/* empty */
			}
		}
		aClass50_129.aClass50_834 = aClass50_129;
		(aClass50_129).aClass50_835 = aClass50_129;
	}

	public void method155(Class50 class50) {
		if ((class50).aClass50_835 != null) {
			class50.method453();
		}
		(class50).aClass50_835 = (aClass50_129).aClass50_835;
		class50.aClass50_834 = aClass50_129;
		(class50).aClass50_835.aClass50_834 = class50;
		(class50.aClass50_834).aClass50_835 = class50;
	}

	public void method156(byte i, Class50 class50) {
		if (i != -57) {
			anInt128 = -23;
		}
		if ((class50).aClass50_835 != null) {
			class50.method453();
		}
		(class50).aClass50_835 = aClass50_129;
		class50.aClass50_834 = aClass50_129.aClass50_834;
		(class50).aClass50_835.aClass50_834 = class50;
		(class50.aClass50_834).aClass50_835 = class50;
	}

	public Class50 popFront() {
		Class50 class50 = aClass50_129.aClass50_834;
		if (class50 == aClass50_129) {
			return null;
		}
		class50.method453();
		return class50;
	}

	public Class50 method158() {
		Class50 class50 = aClass50_129.aClass50_834;
		if (class50 == aClass50_129) {
			aClass50_130 = null;
			return null;
		}
		aClass50_130 = class50.aClass50_834;
		return class50;
	}

	public Class50 method159(boolean bool) {
		Class50 class50 = (aClass50_129).aClass50_835;
		if (bool) {
			for (int i = 1; i > 0; i++) {
				/* empty */
			}
		}
		if (class50 == aClass50_129) {
			aClass50_130 = null;
			return null;
		}
		aClass50_130 = (class50).aClass50_835;
		return class50;
	}

	public Class50 method160(int i) {
		Class50 class50 = aClass50_130;
		if (class50 == aClass50_129) {
			aClass50_130 = null;
			return null;
		}
		aClass50_130 = class50.aClass50_834;
		if (i != 1) {
			throw new NullPointerException();
		}
		return class50;
	}

	public Class50 method161(int i) {
		Class50 class50 = aClass50_130;
		if (i <= 0) {
			throw new NullPointerException();
		}
		if (class50 == aClass50_129) {
			aClass50_130 = null;
			return null;
		}
		aClass50_130 = (class50).aClass50_835;
		return class50;
	}

	public void method162() {
		if (aClass50_129.aClass50_834 != aClass50_129) {
			for (;;) {
				Class50 class50 = aClass50_129.aClass50_834;
				if (class50 == aClass50_129) {
					break;
				}
				class50.method453();
			}
		}
	}
}
